﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="OfficerRemember.aspx.vb" Inherits="RWN.OfficerRemember" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary" TagPrefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

	</script>
    <style type="text/css">
                    
.text_blue {
	font-family: tahoma;
	font-size: 11px;
	color: #293071;
}

.text_blue {
	font-family: tahoma;
	font-size: 11px;
	color: #293071;
}

        .style3
        {
            height: 22px;
        }

        .style4
        {
            width: 150px;
        }

        .style5
        {
            width: 190px;
        }

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
	<asp:Label ID="lblHeader" runat="server" Font-Bold="True" ForeColor="#0099FF" 
        Text="ต่ออายุสมาชิกของนักธุรกิจ"></asp:Label>
    </div>
	<div>
		<hr />
	</div>
	<div>
        <table>
            <tr>
				<td class="style4">
					เลขที่ใบสมัคร 
                                :</td>
				<td width="100px">
				    			
					<asp:TextBox ID="txtOfficerID" runat="server" Width="70px" MaxLength="500" 
                        Enabled="False" Visible="False"></asp:TextBox>
					<asp:TextBox ID="txtOfficerAppID" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				            </td>
				<td style="text-align: right" class="style5">
					หมายเลขโทรศัพท์ในการทำธุรกิจ
                                :</td>
				<td>
				    				
					<asp:TextBox ID="txtOfficerTel" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				    				
                </td>
            </tr>
            <tr>
				<td class="style4">
					ชื่อ (ไทย) :</td>
				<td width="100px">
				    			
					<asp:TextBox ID="txtOfficerNameTH" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				            </td>
				<td style="text-align: right" class="style5">
					นามสกุล :</td>
				<td>
				    				
					<asp:TextBox ID="txtOfficerLastNameTH" runat="server" Width="250px" 
                        MaxLength="500" Enabled="False"></asp:TextBox>
				    				
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    <table style="width: 900px">
                        <tr>
                            <td colspan="2" 
                                style="background-color: #CCCCCC; color: #FFFFFF; font-weight: bold" 
                                class="style3">
                                ข้อมูลการต่ออายุ</td>
                        </tr>
                        <tr>
                            <td class="style4">
                                เลขที่ใบเสร็จ
                                <asp:Label ID="lblStar1" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                             <td>
					<asp:TextBox ID="txtReference" runat="server" Width="695px" MaxLength="500"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4">
                                วันที่จ่ายเงิน
                                <asp:Label ID="lblStar3" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="PaymentDate" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnPaymentDate" runat="server" ImageUrl="~/images/Calendar.gif" />
			                    <asp:CalendarExtender ID="PaymentDate_CalendarExtender" runat="server" 
				                    CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				                    PopupButtonID="ibtnPaymentDate" TargetControlID="PaymentDate">
			                    </asp:CalendarExtender>
					        </td>
                        </tr>
                        <tr>
                            <td class="style4">
                                วันที่ต่ออายุ
                                <asp:Label ID="lblStar9" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                             <td>
					            <asp:TextBox ID="RememberDate" runat="server" Width="70px"></asp:TextBox><asp:ImageButton ID="ibtnRememberDate" runat="server" ImageUrl="~/images/Calendar.gif" />
			                    <asp:CalendarExtender ID="RememberDate_CalendarExtender" runat="server" 
				                    CssClass="" Enabled="True" Format="dd/MM/yyyy" 
				                    PopupButtonID="ibtnRememberDate" TargetControlID="RememberDate">
			                    </asp:CalendarExtender>
                             </td>
                        </tr>
                        <tr>
                            <td class="style4">
                                จำนวนเงิน
                                <asp:Label ID="lblStar8" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                             <td>
					<cc1:numerictextbox ID="txtAmount" runat="server" AllowZero="False" 
						ControlMode="Text" DecimalSeparator="None" MaxLength="15" 
						ThousandsSeparator="None" Width="200px" />
				            </td>
                        </tr>
                        </table>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
					<asp:Button ID="btnSave" runat="server" Text="บันทึก" ValidationGroup="valid" Width="80px" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ยกเลิก" Width="80px" />
                </td>
            </tr>
            <tr>
                <td>
	                <asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" PageSize="20" Width="100%" DataKeyNames="REMEMBER_ID">
				            <AlternatingRowStyle BackColor="White" />
			            <Columns>
			                <asp:CommandField SelectText="ลบ" ShowSelectButton="True" HeaderText="ลบ">
                                <HeaderStyle Width="10%" />
				                <ItemStyle HorizontalAlign="Center" />
			                </asp:CommandField>
				            <asp:BoundField DataField="REMEMBER_REFERENCE" HeaderText="เลขที่ใบเสร็จ" >
				                <HeaderStyle Width="20%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
				            <asp:BoundField DataField="REMEMBER_DATE" HeaderText="วันที่จ่ายเงิน" DataFormatString="{0:dd/MM/yyyy}">
			                    <HeaderStyle Width="20%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
				            <asp:BoundField DataField="REMEMBER_PAYMENT" HeaderText="วันที่ต่ออายุ" DataFormatString="{0:dd/MM/yyyy}">
			                    <HeaderStyle Width="20%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PAYMENT_AMOUNT" HeaderText="จำนวนเงิน" >
			                    <HeaderStyle Width="25%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
			            </Columns>
		                <HeaderStyle BackColor="White" Height="30px" />
		                <PagerStyle BackColor="White" />
		                <RowStyle Height="20px" />
		            </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="background-color: #CCCCCC">
	                &nbsp;</td>
            </tr>
        </table>
	</div>
	<div>
	</div>

	<!-- ไว้เป็น Template สำหรับออก excel -->
	</asp:Content>
